package com.aaa.controller;

import com.aaa.service.DeptService;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年09月29日20:23
 */
@Controller
@RequestMapping("dept")
public class DeptController {
    @Autowired
    private DeptService service;
    @RequestMapping("list")
    @ResponseBody
    public Result list(){
        Result all = service.findAll();
        return all;
    }
}
